{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 版本信息： V1.0.1\n",
    "# 功能：  拖动页面设计案例\n",
    "\n",
    "#!/usr/bin/python\n",
    "# -*- coding: UTF-8 -*-\n",
    "from tkinter import *\n",
    "import tkinter.font as tf\n",
    "from tkinter import ttk\n",
    "import json\n",
    "from TkinterAutoDrag import *"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "root name =  root\n",
      "root Widget.keys =  ['bd', 'borderwidth', 'class', 'menu', 'relief', 'screen', 'use', 'background', 'bg', 'colormap', 'container', 'cursor', 'height', 'highlightbackground', 'highlightcolor', 'highlightthickness', 'padx', 'pady', 'takefocus', 'visual', 'width']\n",
      "create thread\n",
      "thread start\n"
     ]
    }
   ],
   "source": [
    "class AutoDesigneView: \n",
    "    def ViewDrawMain(self):\n",
    "        return\n",
    " \n",
    "    def __init__(self):\n",
    "        #初始化\n",
    "        self.viewName = \"自动页面设计工具 V1.0.0\"        \n",
    "        \n",
    "        self.root = Tk()\n",
    "        self.root.title(self.viewName)\n",
    "\n",
    "        #设置窗口大小\n",
    "        self.root.geometry(\"800x750+200+200\")\n",
    "        \n",
    "        #启动图形设计\n",
    "        self.AutoDrag = TkinterAutoDrag(\"root\",self.root)  \n",
    "        \n",
    "        \n",
    "        self.ViewDrawMain()\n",
    "        #进入循环\n",
    "        self.root.mainloop()\n",
    "if __name__ == \"__main__\":\n",
    "    \n",
    "    x = AutoDesigneView()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    " "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
